package com.cn.wanxi.dao;

import com.cn.wanxi.model.PageBean;
import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface UserDao {
    UserModel findByUsernameAndPassword(UserModel userModel);

    UserModel findById(Integer id);

    int save(UserModel userModel);

    int update(UserModel userModel);

    int delete(Integer id);

    List<UserModel> findAll(UserModel userModel);

    int updateEnable(UserModel userModel);


    int getCount(UserModel userModel);

    UserModel findByUsername(String username);
}
